<template>
  <div class="login">
    <div class="bg"></div>
    <div class="container">
      <span class="title">会员登录</span>
      <div class="hr"></div>
      <div class="dl">
        <input
          type="text"
          class="name"
          placeholder=" 请输入账号"
        />
        <input
          type="text"
          placeholder=" 请输入密码"
          class="name"
        />
        <van-button
          style="margin: 16px 0"
          @click="logoBtn"
          color="linear-gradient(to right, #ff6034, #ee0a24)"
        >
          登录
        </van-button>
        <!-- <div class="btn">登录</div> -->
        <p
          style="cursor: pointer;"
          @click="register"
        >免费注册>></p>
        <div class="hr1"></div>
        <!-- <div class="qt">其他账号登录:<span class="thirdPartyItem wx"></span></div> -->
      </div>
    </div>
    <FooterSub />
  </div>
</template>

<script>
export default {
  data () {
    return {};
  },
  methods: {
    register () {
      this.$router.push("/register");
    },
    logoBtn () {
      console.log(123)
      // 成功通知
      // this.$notify('提交成功,正在审核');
      this.$toast('提交成功,正在审核');
    }
  },
};
</script>

<style lang="scss" scoped>
$fc: #ff6637;
.login {
  .container {
    margin-bottom: 16px;
  }
  .bg {
    width: 100%;
    height: 450px;
    background: url("../assets/swiper/2.png") no-repeat;
    background-position-x: center;
  }
  .title {
    margin-top: 16px;
    display: inline-block;
    padding: 12px 20px;
    color: $fc;
    font-size: 16px;
    border-bottom: 2px solid $fc;
  }
  .hr {
    height: 1px;
    background-color: #eaeaea;
  }
  /* 重置页面 */
  .wrap {
    font-size: 14px;
    font-family: arial, "Hiragino Sans GB", "Microsoft YaHei", "微軟正黑體",
      "儷黑 Pro", sans-serif;
  }

  a {
    color: #757575;
  }

  /* 标题 */
  .layout_panel {
    width: 1200px;
    margin: 0 auto;
  }

  /* 主要内容 */
  .main-wrap {
    margin-top: 6px;
    width: 100%;
    height: 370px;
    position: relative;
  }

  .main-wrap .mian-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    width: 440px;
    min-height: 320px;
    font-size: 14px;
  }

  .nav_tabs {
    padding: 27px 0 24px;
    text-align: center;
    font-size: 24px;
    color: #666;
  }

  .nav_tabs a:hover,
  .nav_tabs a.now {
    color: #f56600;
  }

  .line {
    width: 1px;
    height: 24px;
    margin: 0 35px 0 42px;
    border: 1px solid #e0e0e0;
  }

  /* 帐号登录 */
  .login_area {
    width: 348px;
    margin: 0 auto;
  }

  .item_account {
    height: 12px;
    width: 320px;
    color: #4a4a4a;
    border: 1px solid #e0e0e0;
    padding: 13px 16px 13px 14px;
    display: block;
    margin-top: 13px;
  }

  .btnadpt {
    height: 50px;
    background-color: #ff6700;
    text-align: center;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    padding: 0;
    border: 0;
    margin: 24px auto 14px;
    line-height: 50px;
  }

  .err_tip {
    margin-top: 14px;
    line-height: 20px;
    color: #ff6700;
    margin-bottom: -8px;
    display: none;
  }

  .icon_error {
    width: 14px;
    height: 14px;
    margin: -3px 5px 0 0;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    background: url(../assets/login/sprite_login.gif) no-repeat;
    background-position: 0 -69px;
  }

  .other_panel .login_type_link {
    float: left;
  }

  .other_panel .links_area {
    display: flex;
    justify-content: space-around;
    color: #999;
    text-align: center;
  }

  .other_panel .login_type_link a {
    color: #ff6700;
    height: auto;
    line-height: normal;
  }

  .other_panel .links_area a {
    color: #999;
  }

  .other_panel .links_area a:hover {
    color: #ff6700;
  }

  #sns-login-links {
    margin-top: 10px;
  }

  .other_login_type {
    padding-top: 143px;
    text-align: center;
    color: #bbb;
    font-size: 14px;
  }

  .icon_type {
    width: 30px;
    height: 30px;
    margin: 0 17px;
    display: inline-block;
    border-radius: 50%;
  }

  .icon_type .btn_sns_icontype {
    display: block;
    margin: 4px auto 0;
  }

  .btn_sns_icontype {
    background: url(../assets/login/icons_type.png);
    width: 18px;
    height: 18px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
  }

  /* qq */
  .btn_qq {
    background-color: #0288d1;
  }

  .icon_default_qq {
    background-position: -19px 0;
  }

  /* weibo */
  .btn_weibo {
    background-color: #d32f2f;
  }

  .icon_default_weibo {
    background-position: -38px 0;
  }

  /* alipay */
  .btn_alipay {
    background-color: #0ae;
  }

  .icon_default_alipay {
    background-position: -57px 0;
    width: 25px;
  }

  /* weixin */
  .btn_weixin {
    background-color: #00d20d;
  }

  .icon_default_weixin {
    background-position: -83px 0;
    width: 24px;
  }
  .thirdPartyItem.wx {
    background: url(../assets/new/shareIcn.png) -29px 0 no-repeat;
    _background: url(../assets/new/shareIcn.png) -29px 0 no-repeat;
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-left: 8px;
  }
  /* 底部 */
  .footer-wrap {
    background-color: #fff;
    padding-top: 100px;
    height: 180px;
    text-align: center;
  }

  .footer-wrap .lang-select-list li {
    display: inline-block;
  }

  .lang-select-list a {
    display: inline-block;
    padding: 0 10px;
  }

  .lang-select-list a:hover,
  .lang-select-list a.current {
    color: #333;
  }

  .footer-intro {
    padding: 10px;
    color: #757575;
  }

  /* 扫码登录 */
  .loginbox .ercode_pannel {
    width: 410px;
    height: 475px;
    margin: 0 auto;
    display: -webkit-box;
    -webkit-box-align: center;
    -webkit-box-pack: center;
  }

  .ercode_pannel .ercode_box {
    position: static;
    left: 50%;
    top: 50%;
  }

  .ercode_box .code_iframe {
    width: 302px;
    height: 180px;
    background-image: url(../assets/login/iframe.png);
    background-repeat: no-repeat;
    background-position: center center;
  }

  .custom_sub_txt {
    padding-top: 14px;
    font-size: 14px;
    display: block;
    text-align: center;
    color: #757575;
  }

  .custom_sub_txt span {
    padding: 0 5px;
    color: #ff6700;
  }
  .dl {
    display: flex;
    flex-direction: column;
    padding: 32px 480px;
  }
  .name {
    font-size: 16px;
    height: 24px;
    padding: 4px;
    border: 1px solid #989898;
    background-color: #e8e8e8;
    margin-bottom: 8px;
  }
  input::-webkit-input-placeholder {
    font-size: 12px;
  }
  .btn {
    background-color: #f54f4f;
    color: #fff;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 3px;
    margin-bottom: 8px;
    cursor: pointer;
  }
  p {
    text-align: center;
    color: #878787;
    font-size: 14px;
  }
  .hr1 {
    margin: 10px 0;
    height: 1px;
    background-color: #e8e8e8;
  }
  .qt {
    color: #878787;
    font-size: 14px;
    height: 26px;
    line-height: 26px;
    display: flex;
    align-items: center;
  }
}
</style>
